package com.credit.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.credit.common.ServerResponse;
import com.credit.mapper.analysisChartMapper;
import com.credit.mapper.certificateMapper;
import com.credit.mapper.developmentMapper;
import com.credit.mapper.environmentalMapper;
import com.credit.mapper.financialBenefitMapper;
import com.credit.mapper.occupationalHealthMapper;
import com.credit.mapper.otherProductsMapper;
import com.credit.mapper.professionalWorkMapper;
import com.credit.mapper.qualificationMapper;
import com.credit.mapper.qualityControlMapper;
import com.credit.mapper.socialContributionMapper;
import com.credit.pojo.analysisChart;
import com.credit.pojo.certificate;
import com.credit.pojo.development;
import com.credit.pojo.environmental;
import com.credit.pojo.financialBenefit;
import com.credit.pojo.occupationalHealth;
import com.credit.pojo.otherProducts;
import com.credit.pojo.professionalWork;
import com.credit.pojo.qualification;
import com.credit.pojo.qualityControl;
import com.credit.pojo.socialContribution;
import com.credit.service.IBusinessCreditService;

@Service
public class BusinessCreditServiceImpl implements IBusinessCreditService{

	@Autowired
	private qualityControlMapper qualityControlMapper;
	
	@Autowired
	private environmentalMapper environmentalMapper;
	
	@Autowired
	private otherProductsMapper otherProductsMapper;
	
	@Autowired
	private occupationalHealthMapper occupationalHealthMapper;
	
	@Autowired
	private qualificationMapper qualificationMapper;
	
	@Autowired
	private professionalWorkMapper professionalWorkMapper;
	
	@Autowired
	private developmentMapper developmentMapper;
	
	@Autowired
	private socialContributionMapper socialContributionMapper;
	
	@Autowired
	private financialBenefitMapper financialBenefitMapper;
	
	@Autowired
	private certificateMapper certificateMapper;
	
	@Autowired
	private analysisChartMapper analysisChartMapper;
	
	
	
	
	
	
	
	public ServerResponse deleteQualityControl(Integer id) {
		
		return ServerResponse.createBySuccess(qualityControlMapper.deleteQualityControl(id));
	}

	public ServerResponse insertQualityControl(qualityControl record) {
		
		return ServerResponse.createBySuccess(qualityControlMapper.insertQualityControl(record));
	}

	public ServerResponse selectQualityControl(Integer id) {
		
		return ServerResponse.createBySuccess(qualityControlMapper.selectQualityControl(id));
	}

	public ServerResponse updateQualityControl(qualityControl record) {
		
		return ServerResponse.createBySuccess(qualityControlMapper.updateQualityControl(record));
	}

	
	
	
	
	
	
	public ServerResponse deleteEnvironmental(Integer id) {
		
		return ServerResponse.createBySuccess(environmentalMapper.deleteEnvironmental(id));
	}

	public ServerResponse insertEnvironmental(environmental record) {

		return ServerResponse.createBySuccess(environmentalMapper.insertEnvironmental(record));
	}

	public ServerResponse selectEnvironmental(Integer id) {

		return ServerResponse.createBySuccess(environmentalMapper.selectEnvironmental(id));
	}

	public ServerResponse updateEnvironmental(environmental record) {

		return ServerResponse.createBySuccess(environmentalMapper.updateEnvironmental(record));
	}

	
	
	
	
	public ServerResponse deleteOtherProducts(Integer id) {
		
		return ServerResponse.createBySuccess(otherProductsMapper.deleteOtherProducts(id));
	}

	public ServerResponse insertOtherProducts(otherProducts record) {

		return ServerResponse.createBySuccess(otherProductsMapper.insertOtherProducts(record));
	}

	public ServerResponse selectOtherProducts(Integer id) {

		return ServerResponse.createBySuccess(otherProductsMapper.selectOtherProducts(id));
	}

	public ServerResponse updateOtherProducts(otherProducts record) {

		return ServerResponse.createBySuccess(otherProductsMapper.updateOtherProducts(record));
	}

	
	
	
	
	public ServerResponse deleteOccupationalHealth(Integer id) {
		
		return ServerResponse.createBySuccess(occupationalHealthMapper.deleteOccupationalHealth(id));
	}

	public ServerResponse insertOccupationalHealth(occupationalHealth record) {
		
		return ServerResponse.createBySuccess(occupationalHealthMapper.insertOccupationalHealth(record));
	}

	public ServerResponse selectOccupationalHealth(Integer id) {
		
		return ServerResponse.createBySuccess(occupationalHealthMapper.selectOccupationalHealth(id));
	}

	public ServerResponse updateOccupationalHealth(occupationalHealth record) {
		
		return ServerResponse.createBySuccess(occupationalHealthMapper.updateOccupationalHealth(record));
	}

	
	
	
	
	
	
	public ServerResponse deleteQualification(Integer id) {
		
		return ServerResponse.createBySuccess(qualificationMapper.deleteQualification(id));
	}

	public ServerResponse insertQualification(qualification record) {
		
		return ServerResponse.createBySuccess(qualificationMapper.insertQualification(record));
	}

	public ServerResponse selectQualification(Integer id) {
		
		return ServerResponse.createBySuccess(qualificationMapper.selectQualification(id));
	}

	public ServerResponse updateQualification(qualification record) {
		
		return ServerResponse.createBySuccess(qualificationMapper.updateQualification(record));
	}
	
	
	
	
	

	public ServerResponse deleteProfessionalWork(Integer id) {
		
		return ServerResponse.createBySuccess(professionalWorkMapper.deleteProfessionalWork(id));
	}

	public ServerResponse insertProfessionalWork(professionalWork record) {

		return ServerResponse.createBySuccess(professionalWorkMapper.insertProfessionalWork(record));
	}

	public ServerResponse selectProfessionalWork(Integer id) {

		return ServerResponse.createBySuccess(professionalWorkMapper.selectProfessionalWork(id));
	}

	public ServerResponse updateProfessionalWork(professionalWork record) {

		return ServerResponse.createBySuccess(professionalWorkMapper.updateProfessionalWork(record));
	}

	
	
	
	
	public ServerResponse deleteDevelopment(Integer id) {
		
		return ServerResponse.createBySuccess(developmentMapper.deleteDevelopment(id));
	}

	public ServerResponse insertDevelopment(development record) {
		
		return ServerResponse.createBySuccess(developmentMapper.insertDevelopment(record));
	}

	public ServerResponse selectDevelopment(Integer id) {
		
		return ServerResponse.createBySuccess(developmentMapper.selectDevelopment(id));
	}

	public ServerResponse updateDevelopment(development record) {
		
		return ServerResponse.createBySuccess(developmentMapper.updateDevelopment(record));
	}
	
	
	
	

	public ServerResponse deleteSocialContribution(Integer id) {
		
		return ServerResponse.createBySuccess(socialContributionMapper.deleteSocialContribution(id));
	}

	public ServerResponse insertSocialContribution(socialContribution record) {
		
		return ServerResponse.createBySuccess(socialContributionMapper.insertSocialContribution(record));
	}

	public ServerResponse selectSocialContribution(Integer id) {
		
		return ServerResponse.createBySuccess(socialContributionMapper.selectSocialContribution(id));
	}

	public ServerResponse updateSocialContribution(socialContribution record) {
		
		return ServerResponse.createBySuccess(socialContributionMapper.updateSocialContribution(record));
	}

	
	
	
	public ServerResponse deleteFinancialBenefit(Integer id) {
		
		return ServerResponse.createBySuccess(financialBenefitMapper.deleteFinancialBenefit(id));
	}

	public ServerResponse insertFinancialBenefit(financialBenefit record) {
		
		return ServerResponse.createBySuccess(financialBenefitMapper.insertFinancialBenefit(record));
	}

	public ServerResponse selectFinancialBenefit(Integer id) {
		
		return ServerResponse.createBySuccess(financialBenefitMapper.selectFinancialBenefit(id));
	}

	public ServerResponse updateFinancialBenefit(financialBenefit record) {
		
		return ServerResponse.createBySuccess(financialBenefitMapper.updateFinancialBenefit(record));
	}

	
	
	public ServerResponse deleteCertificate(Integer id) {
		
		return ServerResponse.createBySuccess(certificateMapper.deleteCertificate(id));
	}

	public ServerResponse insertCertificate(certificate record) {
		
		return ServerResponse.createBySuccess(certificateMapper.insertCertificate(record));
	}

	public ServerResponse selectCertificate(Integer id) {
		
		return ServerResponse.createBySuccess(certificateMapper.selectCertificate(id));
	}

	public ServerResponse updateCertificate(certificate record) {
		
		return ServerResponse.createBySuccess(certificateMapper.updateCertificate(record));
	}

	
	
	
	public ServerResponse selectAnalysisChart(Integer id) {
		
		return ServerResponse.createBySuccess(analysisChartMapper.selectAnalysisChart(id));
	}

	public ServerResponse updateAnalysisChart(analysisChart record) {
		
		return ServerResponse.createBySuccess(analysisChartMapper.updateAnalysisChart(record));
	}

	public ServerResponse insertAnalysisChart(analysisChart record) {
		
		return ServerResponse.createBySuccess(analysisChartMapper.insertAnalysisChart(record));
	}
}
